<html>
<body>
<style>
tr {
    background-color:red;
}
tr:hover {
    background-color:green;
}
</style>
<table>
<tr>
    <td>1</td>
    <td>2</td>
</tr>
<tr>
    <td>1</td>
    <td>2</td>
</tr>
</table>
</body>

</html>